#include "SpotLightComponent.h"

#include "Render/RenderContext.h"
#include "Render/Scene/RenderSpotLightData.h"
#include "Render/Scene/RenderScene.h"
#include "Scene/SceneNode.h"
#include "Scene/Scene.h"



void RSpotLightComponent::Paint(CRenderScene* InRenderData)
{
    Super::Paint(InRenderData);

    SRenderSpotLightData& RenderData=InRenderData->SpotLights.Emplace();
    RenderData.Position=GetNode()->GetWorldPosition();
    RenderData.Rotation=GetNode()->GetWorldRotation();
    RenderData.Color=Color;
    RenderData.Intensity=Intensity;
    RenderData.Radius=Radius;
    RenderData.ConeAngle=ConeAngle;
    RenderData.ShadowBias=ShadowBias;

}
